import 'package:flutter/material.dart';

class FirstNewsListPage extends StatefulWidget {

  // String msg;
  var msg;

  FirstNewsListPage({Key? key, this.msg}) : super(key: key);

  @override
  _FirstNewsListPageState createState() => _FirstNewsListPageState(msg: this.msg);
}

class _FirstNewsListPageState extends State<FirstNewsListPage> {

  // String msg;
  var msg;


  _FirstNewsListPageState({this.msg});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.teal),
      home: Scaffold(
        body: Text("${widget.msg}"),
        // body: Text('传递过来的值${msg[0][]}'),
      ),
    );
  }
}
